/*
Copyright [2020] [https://www.xiaonuo.vip]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：

1.请不要删除和修改根目录下的LICENSE文件。
2.请不要删除和修改Snowy源码头部的版权声明。
3.请保留源码和相关描述文件的项目出处，作者声明等。
4.分发源码时候，请注明软件出处 https://gitee.com/xiaonuobase/snowy
5.在修改包名，模块名称，项目代码等时，请注明软件出处 https://gitee.com/xiaonuobase/snowy
6.若您的项目无法满足以上几点，可申请商业授权，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package vip.xiaonuo.modular.manage.biindextype.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.core.pojo.base.entity.BaseEntity;
import vip.xiaonuo.core.pojo.base.node.BaseTreeNode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 指标分类
 *
 * @author cy
 * @date 2022-07-28 19:18:50
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("bi_index_type")
public class BiIndexType extends BaseEntity implements BaseTreeNode {

    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 指标名称
     */
    @Excel(name = "指标名称")
    private String name;

    /**
     * 
     */
    private String code;

    /**
     * 指标级别
     */
    private Integer level;

    /**
     * 指标类型
     */
    @Excel(name = "指标类型")
    private String type;


    private String color;

    private BigDecimal maxValue;
    private BigDecimal minValue;

    /**
     * 排序
     */
    private Integer orderList;

    /**
     * 父id
     */
    @Excel(name = "父id")
    private Long pid;

    /**
     * 
     */
    private String pids;

    /**
     * 是否父分组 Y/N
     */
    private String isParent;

    /**
     * 是否默认指标 Y/N
     */
    private String isDefault;

    /**
     * 是否常用指标
     */
    private String isCommon;

    /**
     * 是否启用 Y/N
     */
    @Excel(name = "是否启用 Y/N")
    private Boolean isEnable;

    @TableField(exist = false)
    private Boolean isEnableFT;

    @TableField(exist = false)
    private String ico;

    public Boolean isEnableFT() {
        return isEnableFT;
    }

    public void setisEnableFT(Boolean isEnableFT) {
        this.isEnableFT = isEnableFT;
    }

    /**
     * 说明
     */
    @Excel(name = "说明")
    private String description;

    /**
     * 指标图样地址
     */
    private String imageUrl;

    /**
     * 
     */
    private String source;

    @TableField(exist = false)
    private String loading;


    @TableField(exist = false)
    private Boolean isCommonFT;

    @TableField(exist = false)
    private Boolean isDefaultFT;


    @TableField(exist = false)
    private List children;


    @Override
    public void setChildren(List children) {
        this.children = children;
    }

}
